steam_file_read(filename);
参数 | 描述 |
---|---|
filename | 要读取的文件的名称。 |
返回: String(字符串)
This function will read the contents of the given file into a
string which can later be parsed in your game.
if steam_file_exists("Save.txt")
{
save_str = steam_file_read("Save.txt");
}
The above code checks to see if a file exists on the Steam Cloud and if it does, it opens it and reads its contents into the variable "save_str".